<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <script>
        console.log("-------------预定义类-------------");
//        console.log(/./.test("\n\r"));
//        console.log(/./.test("adsfadsgdfgdfg"));
//        console.log(/\d/.test(123));
//        console.log(/\d/.test("adsfadsgdfgdfg"));
//        console.log(/\s/.test("     "));
//        console.log(/\s/.test("asdfadsf"));
//        console.log(/\w/.test("$"));
//        console.log(/\w/.test("_"));
// 		console.log(/./.test("\n\r"));
// 		console.log(/./.test("afdsdgdfefsdfe"));
// 		console.log(/./.test(""));
// 		console.log(/\d/.test("123"));
// 		console.log(/\d/.test("acve"));
// 		console.log(/\w/.test("_"));
// 		console.log(/\w/.test("$"));


        console.log("-------------简单类-------------");
//        console.log(/chaoge/.test("chaoge"));
//        console.log(/chaoge/.test("chaogenihao"));
//        console.log(/chaoge/.test("nihaochaoge"));
//        console.log(/chaoge/.test("chaonihaoge"));
//        console.log(/chaoge/.test("chao"));
//        console.log(/[chaoge]/.test("chaoge"));
//        console.log(/[chaoge]/.test("chaogenihao"));
//        console.log(/[chaoge]/.test("nihaochaoge"));
//        console.log(/[chaoge]/.test("chaonihaoge"));
//        console.log(/[chaoge]/.test("chao"));
//        console.log(/[chaoge]/.test("a;ljr jglkrj grjgr"));
//        console.log(/[chaoge]/.test("*"));

//         console.log("-------------负向类-------------");
//        console.log(/[^abc]/.test("iiii"));//true
//        console.log(/[^abc]/.test("aiiii"));//只有一部分睁一只眼闭一只眼true
//        console.log(/[^abc]/.test("abc"));//       console.log(/[^abc]/.test("b"));//
//        console.log(/[^abc]/.test("bcdef"));//只有一部分睁一只眼闭一只眼true
//        console.log(/[^abc]/.test("abcdef"));//只有一部分睁一只眼闭一只眼true

        console.log("-------------范围类-------------");
//        console.log(/[a-c]/.test("dghhj"));
//        console.log(/[a-c]/.test("b"));

        console.log("-------------组合类-------------");
//            console.log(/[a-c1-6]/.test("dghhj"));
//            console.log(/[a-c1-6]/.test("b"));
//            console.log(/[a-c1-6]/.test(8));
//            console.log(/[a-c1-6]/.test(3));


    </script>
</body>
</html>